<div id="content" style=" ">     
	<div id="leftLabel" class="rightbox wd206">
    	<div class="pin labels cf">
        	<div class="home_cf cf">
        	<a href="{u index/index}" {if $category_id == ''}class="current"{/if}><em>全部分类</em></a>
            
        	<!--{loop $_FANWE['cache']['albums']['category'] $category}-->
                   <a href='{u index/index hot=$category['id']}' {if $category_id == $category['id']}class="current"{/if}><em>{$category['name']}</em></a>
			<!--{/loop}-->
            </div>
        </div>
    </div> 
    
    <!--预加载数据-->
    <!--{loop $list $share}-->
    <div class="imBoard rightbox" dataid = "{$share['share_id']}">
    	<div class="pin">
        	<div class="modify">
            	<div class="actions" style="display: none; ">
                	<a haref="javascript:;" onclick="$.Relay_Share({$share['share_id']})" class="button forward-btn png">转发</a>
                    <a class="button comment-btn png">评论</a>
                    <!--{if $share['isMe']}-->
                    	<a href="javascript:;" class="button edit-btn png" onclick="$.Edit_Share({$share['share_id']})">编辑</a>
                    <!--{elseif $share['likeStatus']}-->
                    	<a  parent_id = {$share['parent_id']} share_id = {$share['share_id']} size=32  class="button favourite-btn unfavourite-btn">取消</a>
                    <!--{else}-->
                    	<a  parent_id = {$share['parent_id']} share_id = {$share['share_id']} size=32  class="button favourite-btn png">喜欢</a>
                    <!--{/if}-->
                    
                </div>
                <div class="show-img" style="height:{$share['height']}px;">
                	<a href="{$share['share_url']}" target="_blank">
                    	<img class="picUrl" height="{$share['height']}" src="{$share['share_img']}" width="190">
                    	{if $share['is_video']}
							<img src="{$_FANWE['site_root']}tpl/{$_FANWE['setting']['site_tmpl']}/images/play.gif" class='play' style='margin: {$share['video_style_top']}px 0 22px -{$share['video_style_right']}px;' />
						{/if}
					</a>
                </div>
                <div class="title-sign">
                	<p class="contentsms">{$share['content']}</p>
                    <p class="quantity" style="display:{if $share['relay_count'] == 0 && $share['comment_count'] == 0 && $share['collect_count'] == 0} none{/if};">
                    	<span style="display:{if $share['replay_count'] == 0}none;{else}inline-block;{/if}">
                        	<span>转发</span>
                            <span class="reshareNum">{$share['replay_count']}</span>
                        </span>&nbsp;
            			<span style="{if $share['comment_count'] == 0}display:none;{else}display:inline-block;{/if}">
                        	<span class="pointsNum">·</span>
                            <span>评论</span>
                            <span class="commentNum">{$share['comment_count']}</span>
                        </span>&nbsp;
                        <span style="{if $share['collect_count'] == 0}display:none;{else}display:inline-block;{/if}">
                        	<span class="pointsNum">·</span>
                            <span>喜欢</span>
                            <span class="likeNum">{$share['collect_count']}</span>
                        </span>
                    </p>
              	</div>
                <ul class="comentMain">
                	<li class="hover cf">
                    	<div class="uhead" style="height:30px;">
                        	<a href="{$share['u_url']}">
                            	<img src="{$share['avt']}">
                           	</a>
                       	</div>
                        <div class="uinfo">
                        	<p>
                            	<a href="{$share['u_url']}" class="gray">{$share['user_name']}</a> 
                                {if $share['isOriginal'] == 1}分享到{else}转发到{/if} 
                                <a href="{$share['album_url']}" class="gray">{$share['album_title']}</a>
                           	</p>
                        </div>
                    </li>
                    <!--{if count($share['comments']) > 0}-->
                    	{loop $share['comments'] $comment}
                        	<li class="cf">
                            	<div class="uhead" style="height:30px;">
                        			<a href="{$comment['user_url']}"><img src="{$comment['avt']}" /></a>
                                </div>
                                <div class="uinfo">
                                	<p>
                                    	<a href="{$comment['user_url']}" class="gray">{$comment['user_name']}</a>
                                    </p>
                                    <p class="recoment" commentId="{$comment['comment_id']}">
                                    	{$comment['comment']}&nbsp;<a class="gray">回复</a>
                                    </p>
                                </div>
                            </li>
                        {/loop}
                    <!--{/if}-->
                    
                </ul>
                <div class="postcomment" style="display:none;" parent_id="0">
                	<div class="cf title">
                    	<a href="javascript:void(0)" class="x commentClose">关闭</a>
                        添加评论
                    </div>
                    <div class="cf">
                    	<div class="uhead" style="height:30px;">
                        	<a href="{$current_user['u_url']}"><img src="{$current_user['avt']}"></a>
                       	</div>
                        <div class="commentbody">
                        	<span class="innerborder">
                            	<textarea class="commentTextarea" maxlength="140"></textarea>
                            </span>
                            <div class="submit cf">
                            	<span class="floatright count">
                                	<em class="lightblue">0</em>/140
                                </span>
                                <a class="unpincomment" href="javascript:void(0);">提交</a>
                            </div>
                       </div>
                  	</div>
              	</div>
           	</div>
      	</div>
    </div>  
    <!--{/loop}-->
    
    <!--预加载数据结束-->
    
</div>
<script>
jQuery(function($){
			
$("#content .imBoard").hover(function(){
	$(this).find(".modify").addClass("modifyhover");
    $(this).find(".actions").show();
    $(this).find(".comentMain").find(".uinfo").find("a").removeClass().addClass("blue");
},function(){
	$(this).find(".modify").removeClass("modifyhover");
    $(this).find(".actions").hide();
    $(this).find(".uinfo").find("a").removeClass().addClass("gray");
});



var linkUrl = '{$link_url}',jsonUrl = '{$json_url}';
linkUrl = linkUrl +"&v=" +Math.random()*99999999;

autoLayout.init({
contentID:"content",
rightLoad:true,
leftID:"leftLabel",
rightID:[],
linkUrl:linkUrl,
isFirst:true
});
autoLayout.eachAction(jsonUrl);




});

</script>
